const setData=(url,method="GET",data)=>{
  return new Promise((resolve,reject)=>{
    wx.request({
      url:`http://localhost:9999/${url}`,
      method,
      data,
      fail:reject,
      success:resolve
    })

   })

}
module.exports={
  setData
}